package com.lapelife.backend.mapper;
import org.apache.ibatis.annotations.Param;

import com.lapelife.backend.model.domain.PostUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
* @author Mir.Lliao
* @description 针对表【t_post_user(文章用户关联表)】的数据库操作Mapper
* @createDate 2023-05-07 20:04:08
* @Entity com.lapelife.backend.model.domain.PostUser
*/
@Repository
public interface PostUserMapper extends BaseMapper<PostUser> {

    int updateCollectFlagAndThumbFlagByUserIdAndPostId(@Param("postUser") PostUser postUser);

    int countByPostIdAndUserId(@Param("postId") Long postId, @Param("userId") Long userId);
}




